package amq.utils.enums;

public enum ELangCode {
	// Follow ISO 639-3: http://en.wikipedia.org/wiki/ISO_639-3
	// List: http://www-01.sil.org/iso639-3/iso-639-3_Name_Index_20130520.tab
	TraditionChinese("zho_trad"), SimpleChinese("zho_simp"), English("eng");
	
	private String msg;
	
	private ELangCode(String m){this.msg = m;}
	
	@Override
	public String toString(){return msg;}
	
	public static ELangCode TS(String lcs)
	{
		for(ELangCode ec:ELangCode.values()) if(ec.toString().equals(lcs)) return ec;
		return null;
	}
}
